#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include <QDialog>

class QCheckBox;
class QLabel;
class QLineEdit;
class QPushButton;

class CFindDialog : public QDialog
 {
    Q_OBJECT //necessary for all classes having SIGNAL and SLOTS

public:
    CFindDialog(QWidget *pParent_ = 0);

signals:
    void findNext(const QString &sStr_, Qt::CaseSensitivity eCs_);
    void findPrevious(const QString &sStr_, Qt::CaseSensitivity eCs_);
private slots:
    void findClicked();
    void enableFindButton(const QString &sText_);

private:
    QLabel      *_pLabel;
    QLineEdit   *_pLineEdit;
    QCheckBox   *_pCaseCheckBox;
    QCheckBox   *_pBackwardCheckBox;
    QPushButton *_pFindButton;
    QPushButton *_pCloseButton;
};


#endif // FINDDIALOG_H
